import request from '@/utils/request.js'

export const getAnnouncementsService=()=>{
    return request.get('/announce/get')
}


//新增首页内容
export const saveTextService=(data)=>{
    return request.post('/homepage/saveText',data)
}

//修改首页内容
export const updateTextService=(data)=>{
    return request.post('/homepage/updateText',data)
}

//获取首页内容
export const getTextService= ()=>{
    return request.get('/homepage/getText')
}